package com.wings4.school.exam

import com.wings4.school.academicconfiguration.AcademicYear
import com.wings4.school.academicconfiguration.ClassSection
import com.wings4.school.academicconfiguration.AcademicClasses
import com.wings4.school.academicconfiguration.AcademicSection
import com.wings4.school.student.Student
import com.wings4.school.student.Subject

class ExamTypeResult {

    AcademicYear academicYear;
    AcademicClasses academicClasses;
    AcademicSection academicSection;
    Student student;
    Subject subject;
    ExamType examType;
    Double examMarks;
    Double obtainMarks;
    Double revisedMark;
    Double additionalMarks;
    boolean status;

    static belongsTo = [academicYear:AcademicYear,academicSection:AcademicSection,academicClass:AcademicClasses,
            classSection:ClassSection,examType:ExamType,student:Student]

    static constraints = {
        obtainMarks(nullable: true);
         revisedMark(nullable: true);
         additionalMarks(nullable: true);

    }
}
